from django.conf.urls import url
from fe_api.transcript import views

urlpatterns = [
    url(r'^config_list$', views.ConfigList.as_view()),
    # url(r'^sutra/(?<sutra_id>\d+)$', views.SutraList.as_view()),
    url(r'^sutra_edition/(?P<sutra_edition_id>\d+)/orders$',
        views.OrderList.as_view()),
    url(r'^sutra_edition/(?P<sutra_edition_id>\d+)/order_preview$',
        views.OrderPreview.as_view()),
    url(r'^orders/wechat_pay_notify$', views.WechatPayNotify.as_view()),
    url(r'^user_transcription/(?P<user_transcription_id>\d+)/vow$',
        views.Vow.as_view()),
    url(r'^user_transcription/(?P<user_transcription_id>\d+)/progress$',
        views.Progress.as_view()),
    url(r'^user_transcription/(?P<user_transcription_id>\d+)/finish$',
        views.Finish.as_view()),
    url(r'^sutra_edition/(?P<sutra_edition_id>\d+)/pages/(?P<page_num>\d+)$',
        views.PageData.as_view()),
    url(r'^user_transcription/(?P<user_transcription_id>\d+)/pages/(?P<page_num>\d+)/chars/(?P<index>\d+)$',
        views.SubmitChar.as_view()),
    url(r'^vow_list$', views.VowList.as_view()),
    url(r'^sutra_editions$', views.SutraEditionList.as_view()),
    url(r'^user_transcription/(?P<user_transcription_id>\d+)$',
        views.UserTranscriptionDetail.as_view()),
]
